<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" href="{site}/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="{site}/favicon.ico" type="image/x-icon">
<link rel="bookmark" href="{site}/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心</title>
<link rel="stylesheet" href="{site}/Public/resources/css/style.css" type="text/css" media="screen" />
<script type="text/javascript">
	document.onreadystatechange = function() {
		if (document.readyState == "complete") {
			var aes = document.getElementById("pagination").getElementsByTagName("a");
			for (var n in aes) {
				aes[n].className += " number";
			}
			var url = window.location.href;
			var url_array = url.split("=");
			var page = parseInt(url_array[1]);
			if (typeof(page) != "number") return;
			var uclass = document.getElementById("pagination").getElementsByTagName("a");
			for (var n in uclass) {
				var str = eval("/fy" + page + "/");
				if (str.test(uclass[n].className) && uclass[n].className != undefined && (("fy" + page).length == uclass[n].className.length - 7)) {
					uclass[n].className += " current";
				}
			}
		}
	}
</script>
</head>
<body>
<div id="body-wrapper">
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <h1 id="logo">用户个人中心</h1>
      <div id="profile-links">你好，{user} | <a href="{site}">退出</a><br /><br /></div>
      <ul id="main-nav">
        <li>
          <ul>
            <li><a href="__APP__/Index{url}self{shtml}">设置个人头像</a></li>
            <li><a href="__APP__/Index{url}chpsd{shtml}">更改登录密码</a></li>
            <li><a href="__APP__/Message{url}show{shtml}">查看我的消息</a></li>
            <li><a href="__APP__/Favor{url}show{shtml}">查看我的收藏</a></li>
            <li><a class="current" href="__APP__/Index{url}mypub{shtml}">我发布的帖子</a></li>
            <li><a href="__APP__/Index{url}myrep{shtml}">我回复的帖子</a></li>
            	<?php
	    		if($this->is_exist_widget("SignatureWidget") && $this->is_active_widget("SignatureWidget")){
	    			echo w("SignatureWidget")->slideName();
	    		}
	    		?>
          </ul>
        </li>
      </ul>
    </div>
  </div>
  <div id="main-content">
    <div class="content-box">
      <div class="content-box-header">
        <h3>发布的帖子</h3>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
       <table>
            <thead>
              <tr>
                <th>主题</th>
                <th>发表时间</th>
                <th>最后回复</th>
              </tr>
            </thead>
            <tfoot>
              <tr>
                <td colspan="3">
                   <div id="pagination" class="pagination page">{page}</div>
                  <div class="clear"></div>
                </td>
              </tr>
            </tfoot>
            <tbody>
            	<list>
              <tr>
                <td><a title="{mypubinfo.title|strip_tags}" href="__APP__/Content{url}{mypubinfo.id}{shtml}">{mypubinfo.title}</a></td>
                <td>{mypubinfo.time1}</td>
                <td>{mypubinfo.zuozhe1}</td>
              </tr>
            </list>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <include file="Tpl/Public/footer.html">
  </div>
</div>
<script>
		var tr=document.getElementsByTagName("tr");
		for(var n=0;n<tr.length;n++)
		{
			if(n%2==1&&n!=0)
			{
				tr[n].className+=" alt-row";	
			}
		}
	</script>
</body>
</html>
